package com.dao.xsxt;

import com.entity.xsxt.VoteInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface VoteInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(VoteInfo record);

    int insertSelective(VoteInfo record);

    VoteInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(VoteInfo record);

    int updateByPrimaryKey(VoteInfo record);

    VoteInfo selectByRoomId(int id);

    Integer countIp(@Param("ipAddress") String ipAddress, @Param("toDay")String toDay);
}